<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查看商品信息表明细</title>
</head>
<body>
<form>
    <table border="1">
        <tr><td colspan="2"><h1>查看商品信息表明细</h1></td></tr>
        <tr>
            <td>商品ID</td>
            <td>
                   <span id="productId"></span>
            </td>
        </tr>
        <tr>
            <td>商品编码</td>
            <td>
                   <span id="productCore"></span>
            </td>
        </tr>
        <tr>
            <td>商品名称</td>
            <td>
                   <span id="productName"></span>
            </td>
        </tr>
        <tr>
            <td>品牌表的ID</td>
            <td>
                   <span id="brandId"></span>
            </td>
        </tr>
        <tr>
            <td>一级分类ID</td>
            <td>
                   <span id="oneCategoryId"></span>
            </td>
        </tr>
        <tr>
            <td>二级分类ID</td>
            <td>
                   <span id="twoCategoryId"></span>
            </td>
        </tr>
        <tr>
            <td>三级分类ID</td>
            <td>
                   <span id="threeCategoryId"></span>
            </td>
        </tr>
        <tr>
            <td>上下架状态：0下架1上架</td>
            <td>
                   <span id="publishStatus"></span>
            </td>
        </tr>
        <tr>
            <td>审核状态：0未审核，1已审核</td>
            <td>
                   <span id="auditStatus"></span>
            </td>
        </tr>
        <tr>
            <td>初始回收价格</td>
            <td>
                   <span id="initialRecyclePrice"></span>
            </td>
        </tr>
        <tr>
            <td>生产日期</td>
            <td>
                   <span id="productionDate"></span>
            </td>
        </tr>
        <tr>
            <td>商品描述</td>
            <td>
                   <span id="descript"></span>
            </td>
        </tr>
        <tr>
            <td>商品录入时间</td>
            <td>
                   <span id="indate"></span>
            </td>
        </tr>
        <tr>
            <td>商品图片路径</td>
            <td>
                   <span id="productPicPath"></span>
            </td>
        </tr>
        <tr>
            <td>最后修改时间</td>
            <td>
                   <span id="modifiedTime"></span>
            </td>
        </tr>
        <tr>
            <td>回收次数</td>
            <td>
                   <span id="recycleCount"></span>
            </td>
        </tr>
        <tr>
            <td>其他</td>
            <td>
                   <span id="other1"></span>
            </td>
        </tr>
        <tr>
            <td>其他</td>
            <td>
                   <span id="other2"></span>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="button" id="fanhui" value="返回"/>
            </td>
        </tr>
    </table>
</form>
<script src="/js/jquery-1.12.4.js"></script>
<script>
    var param = location.href.substring(location.href.indexOf('?')+1);
    $.getJSON("/productinfo/findById.json",param,function(detail){
        $("#productId").text(detail.productId);
        $("#productCore").text(detail.productCore);
        $("#productName").text(detail.productName);
        $("#brandId").text(detail.brandId);
        $("#oneCategoryId").text(detail.oneCategoryId);
        $("#twoCategoryId").text(detail.twoCategoryId);
        $("#threeCategoryId").text(detail.threeCategoryId);
        $("#publishStatus").text(detail.publishStatus);
        $("#auditStatus").text(detail.auditStatus);
        $("#initialRecyclePrice").text(detail.initialRecyclePrice);
        $("#productionDate").text(detail.productionDate);
        $("#descript").text(detail.descript);
        $("#indate").text(detail.indate);
        $("#productPicPath").text(detail.productPicPath);
        $("#modifiedTime").text(detail.modifiedTime);
        $("#recycleCount").text(detail.recycleCount);
        $("#other1").text(detail.other1);
        $("#other2").text(detail.other2);
    });
    $("#fanhui").click(function(){
        location.href="/admin/productinfo/list.html";
    });
</script>

</body>
</html>